package com.app.twth.ui.b2cverify;


import com.app.twth.app.Constant;
import com.app.twth.base.BaseModel;
import com.app.twth.bean.BaseResponseEntity;
import com.app.twth.bean.PrintLpn;
import com.app.twth.net.JsonCallBack;
import com.app.twth.ui.b2ctrailer.submit.B2CTrailerSubmitQr;
import com.app.twth.utils.GsonUtil;
import com.lzy.okgo.OkGo;

import java.util.HashMap;
import java.util.Map;

public class B2CVerifyDataModel extends BaseModel {
    public <T> void b2cVerifyTracking(String trailerNo, JsonCallBack jsonCallBack) {
        B2CVerify b2CVerify = new B2CVerify();
        b2CVerify.setTrackingCode(trailerNo);
        OkGo.<BaseResponseEntity<T>>post(Constant.b2cVerifyTracking)
                .tag(this)
                .upJson(GsonUtil.toJson(b2CVerify))
                .execute(jsonCallBack);
//        OkGo.<BaseResponseEntity<T>>post(Constant.printLPN)
//                .tag(this)
//                .upJson(GsonUtil.toJson(new PrintLpn()))
//                .execute(jsonCallBack);
    }

    public <T> void b2cVerifySku(B2CVerify b2CVerify, JsonCallBack jsonCallBack) {
        OkGo.<BaseResponseEntity<T>>post(Constant.b2cVerifySku)
                .tag(this)
                .upJson(GsonUtil.toJson(b2CVerify))
                .execute(jsonCallBack);
    }
}